﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using CSF.BusinessCore.Data;

namespace CSF.Sales.Data
{
    public class ShopCartOptionBase : Transaction
    {

        public int ProductOptionId { get; set; }

        /// <summary>
        /// 产品Id
        /// </summary>
        public int ProductId { get; set; }

        /// <summary>
        /// 产品型号id
        /// </summary>
        public int ProductModelId { get; set; }

        public string Value { get; set; }

        /// <summary>
        /// 单价（含税费）
        /// </summary>
        public decimal Price { get; set; }

        /// <summary>
        /// 数量
        /// </summary>
        public decimal Qty { get; set; }

        /// <summary>
        /// 单位代码
        /// </summary>
        public string UnitCode { get; set; }

        /// <summary>
        /// 已包含的运费
        /// </summary>
        public decimal Freight { get; set; }

        /// <summary>
        /// 已包含的税金
        /// </summary>
        public decimal Duty { get; set; }

        /// <summary>
        /// 已包含的折扣金额
        /// </summary>
        public decimal Discount { get; set; }
    }

    public class ShopCartOption : ShopCartOptionBase
    {
        public int ShopCartId { get; set; }
    }
}
